package com.dexilaonian.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.dexilaonian.MainActivity;
import com.dexilaonian.R;
import com.dexilaonian.ui.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SuccessPayActivity extends BaseActivity {


    @Bind(R.id.back)
    ImageView back;
    @Bind(R.id.base_title_service)
    TextView baseTitleService;
    @Bind(R.id.iv_fanhuidingdan)
    ImageView ivFanhuidingdan;
    @Bind(R.id.jixugoumai)
    ImageView jixugoumai;

    @Override
    public int getLayoutID() {
        return R.layout.activity_success_pay;
    }

    @Override
    public void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
        baseTitleService.setText("支付成功");
    }

    @OnClick({R.id.back, R.id.iv_fanhuidingdan, R.id.jixugoumai})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.iv_fanhuidingdan:
                Intent intent = new Intent(SuccessPayActivity.this, MyStoreOrderAcitivity.class);
                startActivity(intent);
                break;
            case R.id.jixugoumai:
                intent = new Intent(SuccessPayActivity.this, MainActivity.class);
                intent.putExtra("user", 2);
                startActivity(intent);
                finish();
                break;
        }
    }
}
